#include "musicplayinginterface.h"
#include "ui_musicplayinginterface.h"
#include <QDebug>
MusicPlayingInterface::MusicPlayingInterface(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MusicPlayingInterface)
{
    ui->setupUi(this);
    /* 插入音乐图标*/
    QPixmap pixmap_Universe;
    if(false==pixmap_Universe.load("g:/QtProjectImages/宇宙背景.jpg"))
    {
        qDebug()<<"图片加载失败"<<endl;

    }
    //插入图片
    ui->label->setPixmap(pixmap_Universe);
    //缩放图片 适应边框
    ui->label->setScaledContents(true);
    //去窗口边框
    setWindowFlags(Qt::FramelessWindowHint | windowFlags());
    //把窗口背景设置为透明;
    setAttribute(Qt::WA_TranslucentBackground);
}

MusicPlayingInterface::~MusicPlayingInterface()
{
    delete ui;
}
